﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SubjectManager.ascx.cs" Inherits="Assessment.Management.UI.Admin.UserControls.Subjects.SubjectManager" %>
<link href="../../css/toolbar.css" rel="stylesheet" type="text/css" />
<div class="toolbar">
        <div>
            DANH SÁCH MÔN HỌC
        </div>
        <ul class="icon_toolbar">
            <li class="icon_search">
                <asp:LinkButton ID="btnSearch" runat="server" Text="Tìm kiếm" OnClick="btnSearch_Click"></asp:LinkButton>
            </li>
            <li class="icon_add"><a id="hypAddNew" runat="server">Tạo mới</a> </li>
            <li class="icon_delete">
                <asp:LinkButton ID="btnDelete" runat="server" OnClientClick="return confirm('Bạn có chắc chắn muốn xóa các mục đã chọn?')"
                    OnClick="btnDelete_Click">Xóa</asp:LinkButton>
            </li>
            <li class="icon_delete">
             <asp:LinkButton ID="btnExit" runat="server" OnClick="btnExit_Click">Thoát</asp:LinkButton>
        </li>
        </ul>
    </div>
    <div style="clear: both">
        <table width="100%">
            <tr>
                <td>
                    <table width="100%">
                        <col width="150" />
                        <col width="300" />
                        <col width="150" />
                        <col width="200" />
                        <col />
                        <tr>
                            <td align="right">
                                Tên môn học
                            </td>
                            <td>
                                <asp:TextBox ID="txtTenMH" runat="server" Width="200px"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>

             <tr>
                <td>
                    <asp:GridView ID="grvDSMH" runat="server" AutoGenerateColumns="False" CellPadding="4"
                        ForeColor="#333333" GridLines="None" AllowPaging="True" Width="100%" 
                        onrowdatabound="grvDSMH_RowDataBound" onrowdeleting="grvDSMH_RowDeleting" 
                        PageSize="5" OnPageIndexChanging="gridView_PageIndexChanging">
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        <Columns>
                            <asp:TemplateField HeaderText="CheckAll">
                                <HeaderTemplate>
                                    <asp:CheckBox ID="chkSelectAll" runat="server" AutoPostBack="true" OnCheckedChanged="chkSelectAll_CheckedChanged" />Chọn
                                </HeaderTemplate>
                                <ItemTemplate>
                                <asp:HiddenField runat="server" ID="hidVersion" />
                                <asp:HiddenField runat="server" ID="hidSubjectID" />
                                    <asp:CheckBox ID="chkSelect" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="Mã Môn" DataField="ID" />
                            <asp:BoundField HeaderText="Tên Môn" DataField="SubjectName" />
                            <asp:BoundField HeaderText="Số tín chỉ" DataField="Credit" />
                           
                             
                            <asp:TemplateField HeaderText="Sửa">
                                <ItemTemplate>
                                    <asp:HyperLink ID="hypEdit" runat="server">
                                        <asp:Image runat="server" ID="Image1" ImageUrl="../../images/Grid_Edit.png" BorderWidth="0"
                                            BorderColor="Transparent" />
                                    </asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Xóa">
                                <ItemTemplate>
                                        <asp:ImageButton ID="btnDelete" runat="server" ImageUrl="../../images/Grid_Delete.png"
                                            BorderColor="Transparent" BackColor="Transparent" Visible="true" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <EditRowStyle BackColor="#999999" />
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerSettings FirstPageImageUrl="../../images/FirstItem.png" FirstPageText="First" 
                            LastPageImageUrl="../../images/LastItem.png" LastPageText="Last" 
                            NextPageImageUrl="../../images/NextItem.png" NextPageText="Next" 
                            PageButtonCount="5" PreviousPageImageUrl="../../images/PreviousItem.png" 
                            PreviousPageText="Previous" Mode="NextPreviousFirstLast" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#E9E7E2" />
                        <SortedAscendingHeaderStyle BackColor="#506C8C" />
                        <SortedDescendingCellStyle BackColor="#FFFDF8" />
                        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                    </asp:GridView>
                </td>
            </tr>
            <tr align="right">
                <td>
                </td>
            </tr>
            <tr>
                <td align="left">
                    <asp:Label runat="server" ID="lblMessage" CssClass="err" />  
                </td>
            </tr>
        </table>
    </div>